package com.hanthink.system.domain.label;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hanthink.common.annotation.Excel;
import com.hanthink.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * -对象 LabelRecord
 * 
 * @author hanthink
 * @date 2023-02-07
 */
public class LabelRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customer;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String production;

    /** 前标签标签号 */
    @Excel(name = "前标签标签号")
    private String frontlabel;

    /** 背标签标签号 */
    @Excel(name = "背标签标签号")
    private String backlabel;

    /** 防伪标签标签号 */
    @Excel(name = "防伪标签标签号")
    private String antifakelabel;

    @Excel(name = "创建日期")
    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    /*@Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")*/
    private Date creatdatetime;

    @Excel(name = "创建人")
    /** 创建人 */
    /*@Excel(name = "创建人")*/
    private String creator;


    private Long id;

    public void setCustomer(String customer) 
    {
        this.customer = customer;
    }

    public String getCustomer() 
    {
        return customer;
    }
    public void setProduction(String production) 
    {
        this.production = production;
    }

    public String getProduction() 
    {
        return production;
    }
    public void setFrontlabel(String frontlabel) 
    {
        this.frontlabel = frontlabel;
    }

    public String getFrontlabel() 
    {
        return frontlabel;
    }
    public void setBacklabel(String backlabel) 
    {
        this.backlabel = backlabel;
    }

    public String getBacklabel() 
    {
        return backlabel;
    }
    public void setAntifakelabel(String antifakelabel)
    {
        this.antifakelabel = antifakelabel;
    }

    public String getAntifakelabel()
    {
        return antifakelabel;
    }

    public void setCreatdatetime(Date creatdatetime)
    {
        this.creatdatetime = creatdatetime;
    }
    public Date getCreatdatetime()
    {
        return creatdatetime;
    }

    public void setCreator(String creator)
    {
        this.creator = creator;
    }

    public String getCreator()
    {
        return creator;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("customer", getCustomer())
            .append("production", getProduction())
            .append("frontlabel", getFrontlabel())
            .append("backlabel", getBacklabel())
                .append("antifakelabel", getAntifakelabel())
            .append("creatdatetime", getCreatdatetime())
            .append("creator", getCreator())
            .append("id", getId())
            .toString();
    }
}
